package com.junzhiit.nengji.shop.bo;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.bainaeco.framework.base.BaseObject;
import com.bainaeco.framework.util.DateUtil;
import com.bainaeco.framework.util.serializer.CustomDateSerializerHMS;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class AreaBO extends BaseObject {
	
	private static final long serialVersionUID = -2840417161714119604L;

	private String id;
	
	private Integer cityId;
	
	private String areaCode;

	private Double lng;

	private Double lat;

	private String cityCode;

	private Integer level;

	private String shortName;

	private String name;

	private String mergerName;

	private Integer parentId;

	private String zipCode;

	private String pinyin;
	
	private String initial;
	
	private int childrenCount;
	
	@DateTimeFormat(pattern = DateUtil.DATETIME_PATTERN_DEFAULT)
	@JsonSerialize(using = CustomDateSerializerHMS.class)
	protected Date createdTime;

	protected String createdBy;

	@JsonSerialize(using = CustomDateSerializerHMS.class)
	protected Date updatedTime;

	protected String updatedBy;
	
	protected Integer isDelete;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getCityId() {
		return cityId;
	}

	public void setCityId(Integer cityId) {
		this.cityId = cityId;
	}

	public String getAreaCode() {
		return areaCode;
	}

	public void setAreaCode(String areaCode) {
		this.areaCode = areaCode;
	}

	public Double getLng() {
		return lng;
	}

	public void setLng(Double lng) {
		this.lng = lng;
	}

	public Double getLat() {
		return lat;
	}

	public void setLat(Double lat) {
		this.lat = lat;
	}

	public String getCityCode() {
		return cityCode;
	}

	public void setCityCode(String cityCode) {
		this.cityCode = cityCode;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMergerName() {
		return mergerName;
	}

	public void setMergerName(String mergerName) {
		this.mergerName = mergerName;
	}

	public Integer getParentId() {
		return parentId;
	}

	public void setParentId(Integer parentId) {
		this.parentId = parentId;
	}

	public String getZipCode() {
		return zipCode;
	}

	public void setZipCode(String zipCode) {
		this.zipCode = zipCode;
	}

	public String getPinyin() {
		return pinyin;
	}

	public void setPinyin(String pinyin) {
		this.pinyin = pinyin;
	}

	public String getInitial() {
		return initial;
	}

	public void setInitial(String initial) {
		this.initial = initial;
	}

	public int getChildrenCount() {
		return childrenCount;
	}

	public void setChildrenCount(int childrenCount) {
		this.childrenCount = childrenCount;
	}

	public Date getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(Date createdTime) {
		this.createdTime = createdTime;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public Date getUpdatedTime() {
		return updatedTime;
	}

	public void setUpdatedTime(Date updatedTime) {
		this.updatedTime = updatedTime;
	}

	public String getUpdatedBy() {
		return updatedBy;
	}

	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

}
